package homework.score.system;

public abstract class CommandNode implements INode {

    protected String name;
    protected String description;

    public CommandNode(String name, String description) {
        this.name = name;
        this.description = description;
    }

    @Override
    public String getDescription() {
        return description;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public abstract void execute();

    @Override
    public INode getNode(int i) {
        throw new UnsupportedOperationException();
    }

    @Override
    public INode setNode(int i, INode node) {
        throw new UnsupportedOperationException();
    }

    @Override
    public INode addNode(INode node) {
        throw new UnsupportedOperationException();
    }

    @Override
    public int size() {
        throw new UnsupportedOperationException();
    }

}
